import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'flutter_ffmpeg_method_channel.dart';

abstract class FlutterFfmpegPlatform extends PlatformInterface {
  /// Constructs a FlutterFfmpegPlatform.
  FlutterFfmpegPlatform() : super(token: _token);

  static final Object _token = Object();

  static FlutterFfmpegPlatform _instance = MethodChannelFlutterFfmpeg();

  /// The default instance of [FlutterFfmpegPlatform] to use.
  ///
  /// Defaults to [MethodChannelFlutterFfmpeg].
  static FlutterFfmpegPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [FlutterFfmpegPlatform] when
  /// they register themselves.
  static set instance(FlutterFfmpegPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> setFontConfigPath(String path) {
    throw UnimplementedError('setFontConfigPath() has not been implemented.');
  }

  Future<void> ffmpegExecute(List<String> command) {
    throw UnimplementedError('execute() has not been implemented.');
  }

  Future<String> ffprobeExecute(List<String> command) {
    throw UnimplementedError('execute() has not been implemented.');
  }
}
